<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            height: 2000px;
        }
    </style>
</head>
<body>
    <div class="box"></div>
    <script>
        document.addEventListener('click',function(event){
            //1.client 鼠标在可视区的x和y坐标
            console.log(event.clientX);
            console.log(event.clientY);
            console.log('------------------');

            //2. page 鼠标在页面文档的x和y坐标
            console.log(event.pageX);
            console.log(event.pageY);
            console.log('-------------------');

            //3.screen鼠标在电脑屏幕的x和y坐标
            console.log(event.screenX);
            console.log(event.screenY);
        })
    </script>
</body>
</html>